/*******************************************************************************
 * Copyright (c) 2008-2010 Cedric Vidal
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Cedric Vidal - original idea, initial contribution and API
 *******************************************************************************/

package org.trans4j;

import java.lang.reflect.Method;

/**
 * @author <a href="mailto:c.vidal@proxiad.com">Cedric Vidal, ProxiAD Group</a>
 * 
 */
public class CannotResolveUnreturnedObjectException extends RuntimeException {

	private static final long serialVersionUID = 8952778283899609475L;

	public CannotResolveUnreturnedObjectException(Method method) {
		super("You can't invoke a method on an object which is currently being transformed. Faulty rule is " + method.toGenericString());
	}

}
